<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 进行单选 -->
        <select name="city" v-model="city">
            <option value="云南">云南</option>
            <option value="哈尔滨">哈尔滨</option>
            <option value="夏威夷">夏威夷</option>
            <option value="香格里拉">香格里拉</option>
            <option value="西藏">西藏</option>
        </select>


        <!-- 进行多选 -->
        <!-- multiple属性可以让下拉列表进行多选 -->
        <select name="food" v-model="isfood" multiple>
            <option value="炸鸡">炸鸡</option>
            <option value="烧烤">烧烤</option>
            <option value="小龙虾">小龙虾</option>
            <option value="披萨">披萨</option>
            <option value="牛排">牛排</option>
        </select>
    </div>
    <script>
        const vm = new Vue({
            el: '#app',
            data() {
                return {
                    city:'香格里拉',
                    isfood:[]
                }
            },
        })
    </script>
</body>

</html>